.class Lcom/wmr/order/OrderlistActivity$11;
.super Ljava/lang/Thread;
.source "OrderlistActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/wmr/order/OrderlistActivity;->order_update()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/wmr/order/OrderlistActivity;


# direct methods
.method constructor <init>(Lcom/wmr/order/OrderlistActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    .line 589
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 12

    .prologue
    const/4 v11, 0x2

    .line 591
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 593
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 594
    .local v2, "msg":Landroid/os/Message;
    iget-object v8, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    .line 595
    const-string v9, "userInfo"

    const/4 v10, 0x0

    .line 594
    invoke-virtual {v8, v9, v10}, Lcom/wmr/order/OrderlistActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v3

    .line 596
    .local v3, "preferences":Landroid/content/SharedPreferences;
    const-string v8, "uid"

    const-string v9, ""

    invoke-interface {v3, v8, v9}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 597
    .local v6, "uid":Ljava/lang/String;
    const-string v8, "pass"

    const-string v9, ""

    invoke-interface {v3, v8, v9}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 599
    .local v4, "pwd":Ljava/lang/String;
    new-instance v8, Ljava/lang/StringBuilder;

    iget-object v9, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    # getter for: Lcom/wmr/order/OrderlistActivity;->m:Lmyapp/MyApp;
    invoke-static {v9}, Lcom/wmr/order/OrderlistActivity;->access$12(Lcom/wmr/order/OrderlistActivity;)Lmyapp/MyApp;

    move-result-object v9

    invoke-virtual {v9}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 600
    const-string v9, "/index.php?ctrl=app&action=newordercontrol&doname="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    .line 601
    iget-object v9, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    # getter for: Lcom/wmr/order/OrderlistActivity;->order_ctrol_code:Ljava/lang/String;
    invoke-static {v9}, Lcom/wmr/order/OrderlistActivity;->access$15(Lcom/wmr/order/OrderlistActivity;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&orderid="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    iget-object v9, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    # getter for: Lcom/wmr/order/OrderlistActivity;->orderid:Ljava/lang/String;
    invoke-static {v9}, Lcom/wmr/order/OrderlistActivity;->access$16(Lcom/wmr/order/OrderlistActivity;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&uid="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    .line 602
    invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&pwd="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&datatype=json"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    .line 599
    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 603
    .local v7, "url":Ljava/lang/String;
    const-string v8, "OrderdetACtivity"

    new-instance v9, Ljava/lang/StringBuilder;

    const-string v10, "sureorder() \u5173\u95ed \u5b9a\u5355"

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v9, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v8, v9}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 604
    invoke-static {v7}, Lmyclass/HttpConn;->getStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 607
    .local v5, "str":Ljava/lang/String;
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v5}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 609
    .local v1, "json":Lorg/json/JSONObject;
    const-string v8, "error"

    invoke-virtual {v1, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    const-string v9, "true"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_0

    .line 610
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 611
    const-string v8, "msg"

    invoke-virtual {v1, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    iput-object v8, v2, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 612
    const/4 v8, 0x1

    iput v8, v2, Landroid/os/Message;->arg1:I

    .line 613
    iget-object v8, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    iget-object v8, v8, Lcom/wmr/order/OrderlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v8, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 634
    .end local v1    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 616
    .restart local v1    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v8, "msg"

    invoke-virtual {v1, v8}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_1

    .line 617
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 618
    const/4 v8, 0x2

    iput v8, v2, Landroid/os/Message;->arg1:I

    .line 619
    iget-object v8, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    iget-object v8, v8, Lcom/wmr/order/OrderlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v8, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 626
    .end local v1    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 628
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    .line 629
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 631
    iput v11, v2, Landroid/os/Message;->arg1:I

    .line 632
    iget-object v8, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    iget-object v8, v8, Lcom/wmr/order/OrderlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v8, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 622
    .end local v0    # "e":Lorg/json/JSONException;
    .restart local v1    # "json":Lorg/json/JSONObject;
    :cond_1
    const/4 v8, 0x5

    :try_start_1
    iput v8, v2, Landroid/os/Message;->arg1:I

    .line 623
    iget-object v8, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    iget-object v8, v8, Lcom/wmr/order/OrderlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v8, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 637
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 638
    monitor-exit p0

    return-void

    .line 637
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
